﻿@model VideoCache.Server.MVCWeb.Areas.Member.Models.CompanyModel

@{
    ViewBag.Title = "商户信息";
    Layout = "~/Areas/Member/Views/Shared/_Layout.cshtml";
}
@section script
{
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.locationselect.js")" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $.locationSelect("Province", "City");
        });
    </script>
}
<h2>@ViewBag.Title</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
<table class="table-form">
    <tr>
        <td class="label">@Html.LabelFor(model => model.Name)</td>
        <td>
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.ContactPerson)</td>
        <td>
            @Html.EditorFor(model => model.ContactPerson)
            @Html.ValidationMessageFor(model => model.ContactPerson)
        </td>
    </tr>
    <tr>
        <td class="label">详细地址</td>
        <td>
            <select id="Province" name="Province"></select>
            <select id="City" name="City"></select>
            <br />
            @Html.EditorFor(model => model.Address)
            @Html.ValidationMessageFor(model => model.Province)
            @Html.ValidationMessageFor(model => model.City)
            @Html.ValidationMessageFor(model => model.Address)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Telephone)</td>
        <td>
            @Html.EditorFor(model => model.Telephone)
            @Html.ValidationMessageFor(model => model.Telephone)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Mobile)</td>
        <td>
            @Html.EditorFor(model => model.Mobile)
            @Html.ValidationMessageFor(model => model.Mobile)
        </td>
    </tr>
    <tr>
        <td class="label">@Html.LabelFor(model => model.Name)</td>
        <td>
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </td>
    </tr>
    <tr>
        <td class="label"></td>
        <td>
            <input type="submit" value="保存" />
        </td>
    </tr>
</table>
}